package com.wfcm.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.wfcm.dao.WfCouponsDao;
import com.wfcm.entity.WfCouponsEntity;
import com.wfcm.service.WfCouponsService;



@Service("wfCouponsService")
public class WfCouponsServiceImpl implements WfCouponsService {
	@Autowired
	private WfCouponsDao wfCouponsDao;
	
	@Override
	public WfCouponsEntity queryObject(Integer id){
		return wfCouponsDao.queryObject(id);
	}
	
	@Override
	public List<WfCouponsEntity> queryList(Map<String, Object> map){
		return wfCouponsDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return wfCouponsDao.queryTotal(map);
	}
	
	@Override
	public void save(WfCouponsEntity wfCoupons){
		wfCouponsDao.save(wfCoupons);
	}
	
	@Override
	public void update(WfCouponsEntity wfCoupons){
		wfCouponsDao.update(wfCoupons);
	}
	
	@Override
	public void delete(Integer id){
		wfCouponsDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		wfCouponsDao.deleteBatch(ids);
	}
	
}
